dav1d: treat RGB formats separately
authorTristan Matthews <tmatth@videolan.org>
Sat, 31 Aug 2024 16:58:27 +0000 (12:58 -0400)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 7 Mar 2025 06:31:22 +0000 (07:31 +0100)
commita4f509fb1d79dbc0f905ad0847fc9ecbfd5f35ac
tree2038169d4f5e4370aa3441830227628a269eecb5
parent53c8a93b36698fa07e6788cf9dfc9dd448b283bb
dav1d: treat RGB formats separately

This avoids incorrectly matching as GBR.
Fixes #28763 which was missing checks for the matrix and primaries.

This also replaces the loop with a constant-time lookup.

(cherry picked from commit ece317a245e8c32a5efc11d5e82dcd8a28a2f10b)

Gbp-Pq: Name 0027-dav1d-treat-RGB-formats-separately.patch
modules/codec/dav1d.c